package com.yanyi.music.service.impl;

import com.yanyi.music.dao.ListSongMapper;
import com.yanyi.music.domain.ListSong;
import com.yanyi.music.service.ListSongService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ListSongServiceImpl implements ListSongService {
    @Autowired
    private ListSongMapper listSongMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return listSongMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ListSong record) {
        return listSongMapper.insert(record);
    }

    @Override
    public int insertSelective(ListSong record) {
        return listSongMapper.insertSelective(record);
    }

    @Override
    public ListSong selectByPrimaryKey(Integer id) {
        return listSongMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ListSong record) {
        return listSongMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ListSong record) {
        return listSongMapper.updateByPrimaryKey(record);
    }

    @Override
    public int deleteBySongIdAndSongListId(Integer songId, Integer songListId) {
        return listSongMapper.deleteBySongIdAndSongListId(songId, songListId);
    }

    @Override
    public List<ListSong> finadAll(Map<String, Object> map) {
        return listSongMapper.finadAll(map);
    }
}
